package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 实时预警
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_time_warning")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TimeWarningModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //实时预警表ID
    private String title;//实时预警标题
    private String type;//实时预警灾害类型
    private String level;//预警等级
    private String safecode;//
    private String text;//具体内容
    private String time;//发布时间
    private String pushlevel;//推送等级 1：省级预警 2：市级预警 3：区县级预警
    private String cityid;//城市ID
    private String province;//省份
    private String city;//城市名称
    private String area;//	区县名称
    private String longitude;//经度
    private String latitude;//纬度
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    private String pdf;
    private String pdfName;

}
